package com.topideal.supplychain.hades.util;

public class HashUtil {
    public static long BKDRHash(String str) {
        long seed = 131L;
        long hash = 0L;
        for (int i = 0; i < str.length(); ++i)
            hash = hash * seed + str.charAt(i);
        return hash;
    }
}
